package org.example.service;

import org.example.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author TonySong
 * @date 2024/7/9 0009
 * @time 17:03
 */
@FeignClient(value = "user-model",path = "/orders")
public interface UserFeign {

    @PostMapping("/pay")
    Boolean pay(@RequestBody Order order);
}
